<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <h4>绑定已有的账号</h4>
    <form action="{:url('bindOutsideUser')}" method="post">
        <div>
            <label for="username">账号</label>
            <input type="text" name="username" id="username">
        </div>
        <div>
            <label for="password">密码</label>
            <input type="text" name="password" id="password">
        </div>
        <input type="hidden" name="UserId" value="{$UserId}">
        <button type="submit">绑定</button>
    </form>

    <h4>使用企业微信账号创建新账号</h4>
    <form action="{:url('bindOutsideUserWithDetail')}" method="post">
        <img src="{$detail.avatar}" alt="">
        <p>{$detail.name}</p>
        <p>{$detail.userid}</p>
        <p>{$detail.mobile}</p>
        <button type="submit">创建</button>
    </form>
</body>
</html>
